<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>E-Demografi Banyuwangi </title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <!-- Required -->
        <script type="text/javascript" src="<?php echo base_url(); ?>static/javascript/jquery-1.8.1.min.js" ></script>
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
        <link href="<?php echo base_url(); ?>static/css/global-style.css" rel="stylesheet" type="text/css" media="screen">
        <link href="<?php echo base_url(); ?>static/css/css_style.css" rel="stylesheet" type="text/css" media="screen">
        <script type="text/javascript" src="<?php echo base_url() ?>static/jquery-1.6.2.min.js"></script>
        <script type="text/javascript" src="<?php echo base_url() ?>static/jquery.js"></script>
        <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> 
        <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?libraries=geometry&sensor=false"></script>
        <link rel="shortcut icon" href="<?php echo base_url() ?>/favicon.ico" type="image/x-icon">
        <link rel="icon" href="<?php echo base_url() ?>/favicon.ico" type="image/x-icon">
    </head>
    <body class="wp-theme-2">
        <div class="wrapper">
            <!-- This section is only for demonstration purpose only. Just remove the div "divStyleSwitcher" -->

            <div class="top-header bg-4">
                <div class="container">
                    <div class="row">
                        <div class="col-sm-12">
                            <span class="aux-text hidden-xs">
                                Selamat datang di E-Demografi
                            </span>
                            <nav class="top-header-menu" >
                                <ul class="menu">
                                    <?php
                                    $session = $this->session->userdata('login');
                                    //var_dump($session);
                                    if ($session != null) {
                                        ?><li>
                                            <a href="<?= site_url() ?>/admin" style="color: #999">
                                                <?= $session['pengguna_nama_display']; ?>
                                            </a>
                                        </li>
                                        <li>
                                            <a href="<?= site_url() ?>/login/keluar" style="color: #999">Logout</a>
                                        </li>
                                        <?php
                                    } else {
                                        //var_dump($this->session->all_userdata());
                                        ?>
                                        <li>
                                            <a href="<?= site_url() ?>/login" style="color: #999">Login</a>
                                        </li>
                                        <?php
                                    }
                                    ?>    
                                </ul>
                            </nav>
                        </div>
                    </div>
                </div>  
            </div>

            <header style="border-bottom: 10px solid #dddddd; ">    
                <div id="navOne" class="navbar navbar-wp" role="navigation">
                    <div class="container">
                        <div class="navbar-header">
                            <button type="button" class="navbar-toggle navbar-toggle-aside-menu">
                                <i class="fa fa-outdent icon-custom"></i>
                            </button>
                            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                                <span class="sr-only">Toggle navigation</span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                            </button>
                            <a class="navbar-brand" href="<?php echo site_url(); ?>" title="SIM Pendidikan" style="height: 80px">
                                <img src="<?php echo base_url(); ?>static/images/edemografi.png" alt="SIM Pendidikan"  style="height: 70px">
                            </a>
                        </div>
                    </div>
                </div>
            </header>  